package com.cskaoyan.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @USER: cuiweiguo#
 * @DATE: 2022/5/8
 * @TIME: 10:43
 * @PROJECT_NAME: mallproject2
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WxOrderListBean {
    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<WxOrderListVO> list;

    public static WxOrderListBean data(long total, Integer pages, Integer limit, Integer page, List list) {
        WxOrderListBean wxOrderListBean = new WxOrderListBean();
        wxOrderListBean.setTotal((int) total);
        wxOrderListBean.setPages(pages);
        wxOrderListBean.setPage(page);
        wxOrderListBean.setLimit(limit);
        wxOrderListBean.setList(list);
        return wxOrderListBean;
    }
}
